/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package titanisu.commonUtil;

/**
 *
 * @author Balaji
 */
public class fileUtil {

    /** to read file's absolute name and return the content in file
     * @param Filename absolute file path 
     * @return content in the file as a string
     */
    public String readFile(String fileName)
    {
        String fileContent="";
        System.out.println("please insert code to read file and return the file content as String at "+this.toString());
     
        fileContent = "<?xml version=\"1.0\"?><!DOCTYPE math PUBLIC \"-//W3C//DTD MathML 2.0//EN\" \"http://www.w3.org/TR/MathML2/dtd/mathml2.dtd\"><math mode=\"display\">  <mrow>    <munderover>      <mo>&#x222B;</mo>      <mn>1</mn>      <mi>x</mi>    </munderover>    <mfrac>      <mi>dt</mi>      <mi>t</mi>    </mfrac>  </mrow></math>";
        
        return fileContent;
    }
    
    /** to write content in a given file's absolute path
     * @param Filename absolute file path 
     * @return false if file could not be written 
     */
    public boolean writeFile(String fileName,String fileContent)
    {
        boolean writeSuccsfull=true;
        return writeSuccsfull;
    }
    
}
